
import { DTaroAjax } from '@/http/http'

const base = '/api/cookcar-trans'

const cookTrans = {
    // 托运
    // getListTrans(params) {
    //     return DTaroAjax(`${base}/trans/carDemand/transList`, params, 'POST')
    // },

    //托运详情
    getDetailTrans(params) {
        return DTaroAjax(`${base}/trans/carDemand/transDetail`, params)
    },
    getMyOverdueTrans(params) {
        return DTaroAjax(`${base}/trans/carDemand/myOverdueTrans`, params)
    },
    getMyTrans(params) {
        return DTaroAjax(`${base}/trans/carDemand/myTrans`, params)
    },
    leaveTrans(params) {
        return DTaroAjax(`${base}/trans/carDemand/remove`, params)
    },
    delTrans(params) {
        return DTaroAjax(`${base}/trans/carDemand/delete`, params)
    },

    //新增报价
    // 报价查询  报价详情(包含后台)
    getQuotedDetail(params) {
        return DTaroAjax(`${base}/trans/QuotedPrice/QuotedDetail`, params)
    },
    addQuote(params) {
        return DTaroAjax(`${base}/trans/QuotedPrice/save`, params, 'POST')
    },
    //我的物流报价
    myQuoted(params) {
        return DTaroAjax(`${base}/trans/QuotedPrice/myQuoted`, params)
    },
    //我的报价（已失效）
    myOverdueQuoted(params) {
        return DTaroAjax(`${base}/trans/QuotedPrice/myOverdueQuoted`, params)
    },
    //修改报价
    changeQuoted(params) {
        return DTaroAjax(`${base}/trans/QuotedPrice/updateQuoted`, params)
    },
    //取消报价
    cancelQuoted(params) {
        return DTaroAjax(`${base}/trans/QuotedPrice/cancelQuoted`, params)
    },
    //删除报价
    deleteQuoted(params) {
        return DTaroAjax(`${base}/trans/QuotedPrice/deleteQuoted`, params)
    },

    // 发布物流
    addLogistics(params) {
        return DTaroAjax(`${base}/trans/carDemand/save`, params, 'POST')
    }
}



export default cookTrans